/*
 * ODO: Real-Time In-Memory ORM/DBMS Grid software
 * Copyright (c) 2008, Michael Oksenenko
 * All rights reserved.
 */
//----------------------------------------------------------------------------
#include "OsConfig.hpp"
#if ODO_OS_VISTA == ODO_CHOSEN_OS
//----------------------------------------------------------------------------
#include "ConsoleVista.hpp"

#include <clocale>
#include <iostream>

using namespace odo;

bool ConsoleVista::initUnicode() {
	std::wcout.sync_with_stdio(true);
	std::wcin.sync_with_stdio(true);

	if (0 == _wsetlocale(LC_ALL, L"")) {
		std::wcerr << L"FAIL set locale." << std::endl;
		return false;
	}

	// some other setup in future
	return true;
}

ConsoleVista::~ConsoleVista() {
	// void
}

ConsoleVista::ConsoleVista() {
	// void
}
//----------------------------------------------------------------------------
#endif /* ODO_OS_VISTA */
//----------------------------------------------------------------------------
